package org.jgs1904.service.impl;

import java.sql.SQLException;

import org.jgs1904.dao.UserDao;
import org.jgs1904.dao.impl.UserDaoImpl;
import org.jgs1904.entity.User;
import org.jgs1904.service.UserService;

/**
 * 	用户业务类
 * @author junki
 * @date 2020年3月26日
 */
public class UserServiceImpl implements UserService {

	private UserDao userDao = new UserDaoImpl();
	
	public User add(User user) throws SQLException {
		return userDao.insert(user);
	}

	public User getOne(User user) throws SQLException {
		return userDao.selectOne(user);
	}

}
